package com.ucode.springboot.starter.ESsearch.enums;

/**
 * sql请求返回类型
 * @title: SqlFormat.java
 * @copyright: copyright (c) 2018
 * @company: 智慧互通科技有限公司
 * @author: ll
 * @date: 2020年1月7日 下午2:53:09
 * @firstReview:
 * @lastReview:
 * @desc:
 */
public enum SqlFormat {
    CSV("csv","text/csv"),
    JSON("json","application/json"),
    TSV("tsv","text/tab-separated-values"),
    TXT("txt","text/plain"),
    YAML("yaml","application/yaml"),
    CBOR("cbor","application/cbor"),
    SMILE("smile","application/smile");


    private String format;
    private String acceptHttpHeader;

    private SqlFormat(String format, String acceptHttpHeader) {
        this.format = format;
        this.acceptHttpHeader = acceptHttpHeader;
    }


    @Override
    public String toString() {
        return this.format;
    }


    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getAcceptHttpHeader() {
        return acceptHttpHeader;
    }

    public void setAcceptHttpHeader(String acceptHttpHeader) {
        this.acceptHttpHeader = acceptHttpHeader;
    }
}